flow box: Avoid excessive signals
authorMatthias Clasen <mclasen@redhat.com>
Sat, 29 Mar 2014 04:46:51 +0000 (00:46 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 29 Mar 2014 04:46:51 +0000 (00:46 -0400)
We were emitting the a11y ::selection-changed signal much more
often than ::selected-children-changed. Thats not necessary.

gtk/gtkflowbox.c

index 942d5776e9df25d206c4bb32f5acace8cc28557f..0c55636f4c82a4483ccd694288db4980a393188f 100644 (file)
@@ -961,8 +961,6 @@ static gboolean
 gtk_flow_box_child_set_selected (GtkFlowBoxChild *child,
                                  gboolean         selected)
 {
-  GtkFlowBox *box;
-
   if (CHILD_PRIV (child)->selected != selected)
     {
       CHILD_PRIV (child)->selected = selected;
@@ -973,9 +971,6 @@ gtk_flow_box_child_set_selected (GtkFlowBoxChild *child,
         gtk_widget_unset_state_flags (GTK_WIDGET (child),
                                       GTK_STATE_FLAG_SELECTED);
 
-      box = gtk_flow_box_child_get_box (child);
-      _gtk_flow_box_accessible_selection_changed (GTK_WIDGET (box));
-
       gtk_widget_queue_draw (GTK_WIDGET (child));
 
       return TRUE;